package com.css.zfzx.fxpg.modules.workarea.repository;

import com.css.bpm.platform.components.attach.repository.entity.SysAttachmentEntity;
import com.css.zfzx.fxpg.modules.workarea.repository.entity.FxWorkareaEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author leon
 * @date 2020-11-24
 */
public interface FxWorkareaRepository extends JpaRepository<FxWorkareaEntity, String> {

    /**
     * 查询所有工作区名称
     *
     * @return
     */
    @Query(nativeQuery = true, value = "select workspace from fx_workarea")
    List<String> findWorkspaces();
}
